package com.medical.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.medical.system.mapper.SysNewsMapper;
import com.medical.system.model.News;
import com.medical.system.service.SysNewsService;
import com.medical.system.vo.NewsVo;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
@Transactional
public class SysNewsServiceImpl extends ServiceImpl<SysNewsMapper, News> implements SysNewsService {
    @Override
    public IPage<News> selectPage(IPage<News> iPage, NewsVo newsVo) {
        return this.baseMapper.selectPage(iPage,newsVo);
    }
}
